<div class="span6 offset3 well">
	<?php 
		if($this->session->flashdata('register_errors'))
		{	?>
			<div class="alert alert-danger">
				<?= $this->session->flashdata('register_errors') ?>
			</div>
	<?php  
		}	
		else if($this->session->flashdata('register_success'))
		{	?>
			<div class="alert alert-success">
				<?= $this->session->flashdata('register_success')  ?>
			</div>
	<?php  	
		}	?>
	<form action="/user/process_register" method="post" class="form-horizontal">
		<fieldset>
			<legend>Register</legend>
			<div class="control-group">
				<label for="first_name" class="control-label">First name</label>
				<div class="controls">
					<input type="text" name="first_name">
				</div>
			</div>
			<div class="control-group">
				<label for="last_name" class="control-label">Last name</label>
				<div class="controls">
					<input type="text" name="last_name">
				</div>
			</div>
			<div class="control-group">
				<label for="email" class="control-label">Email address</label>
				<div class="controls">
					<input type="text" name="email">
				</div>
			</div>
			<div class="control-group">
				<label for="password" class="control-label">Password</label>
				<div class="controls">
					<input type="password" name="password">
				</div>
			</div>
			<div class="control-group">
				<label for="password_confirmation" class="control-label">Confirm Password</label>
				<div class="controls">
					<input type="password" name="password_confirmation">
				</div>
			</div>
			<div class="control-group">
				<label for="user_type" class="control-label">Register as:</label>
				<div class="controls">
					<select name="user_type" id="user_type">
						<option value="0">- Select a user type -</option>
						<option value="1" >Student</option>
						<option value="2">Professor</option>
					</select>
				</div>
			</div>
			<div class="controls">
				<button type="submit" name="register" class="btn btn-info">Register</button>
			</div>
		</fieldset>
	</form>
	<div class="alert alert-info">
		<p class="muted">Already have an account? Please login <a href="/user/login">here</a></p>
	</div>
</div>